package com.joysuch.wwyt.bp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zr
 * @since 2021-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_alarm_message")
@ApiModel(value = "AlarmMessage对象", description = "")
public class AlarmMessage extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "外键id")
    private String uniqueId;

    @ApiModelProperty(value = "报警类型(1：AI ,)")
    private Integer alarmType;

    @ApiModelProperty(value = "报警类型名称")
    private String alarmTypeName;

    @ApiModelProperty(value = "AI报警子类型")
    private Integer subType;

    @ApiModelProperty(value = "Al报警子类型名称")
    private String subTypeName;

    @ApiModelProperty(value = "报警信息")
    private String alarmInfo;

    @ApiModelProperty(value = "报警时间")
    private Date alarmTime;

    @ApiModelProperty(value = "人员工号")
    private String userCode;

    @ApiModelProperty(value = "报警位置")
    private String alarmLocation;

    @ApiModelProperty(value = "围栏信息")
    private String rails;

    @ApiModelProperty(value = "报警图片ID")
    private Long alarmPicId;

    @ApiModelProperty(value = " 摄像头对应拉流地址/rtsp")
    private String cameraUrl;

    @ApiModelProperty(value = "摄像头名称")
    private String cameraName;

    @ApiModelProperty(value = "报警状态(0:已处理 1:未处理)")
    private Integer status;

    @ApiModelProperty(value = "处理人")
    private String handlerBy;

    @ApiModelProperty(value = "报警原因")
    private String reason;

    @ApiModelProperty(value = "处理信息")
    private String handleInfo;

    @ApiModelProperty(value = "处理时间")
    private Date handleTime;

    @ApiModelProperty(value = "定位返回的id")
    private String employeeId;

    @ApiModelProperty(value = "sn")
    private String sn;

    @ApiModelProperty(value = "作业票流水号")
    private String serialNumber;

    private String processInstanceId;

    @Override
    public String toString() {
        return "AlarmMessage{" +
                "id=" + id +
                ", uniqueId='" + uniqueId + '\'' +
                ", alarmType=" + alarmType +
                ", alarmTypeName='" + alarmTypeName + '\'' +
                ", subType=" + subType +
                ", subTypeName='" + subTypeName + '\'' +
                ", alarmInfo='" + alarmInfo + '\'' +
                ", alarmTime=" + alarmTime +
                ", userCode='" + userCode + '\'' +
                ", alarmLocation='" + alarmLocation + '\'' +
                ", rails='" + rails + '\'' +
                ", alarmPicId=" + alarmPicId +
                ", cameraUrl='" + cameraUrl + '\'' +
                ", cameraName='" + cameraName + '\'' +
                ", status=" + status +
                ", handlerBy='" + handlerBy + '\'' +
                ", reason='" + reason + '\'' +
                ", handleInfo='" + handleInfo + '\'' +
                ", handleTime=" + handleTime +
                ", employeeId='" + employeeId + '\'' +
                ", sn='" + sn + '\'' +
                '}';
    }
}
